<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css"href="${request.contextPath}/css/login.css">
<script src="${request.contextPath}/easyui/jquery-1.12.4.min.js" type="text/javascript" charset="utf-8"></script>
<title>${apptitle}</title>
</head>
<body>
	<div class="crm-register-bg">
		<div class="crm-register-form">
			<header class="crm-login1-header">
				<h1>${apptitle}</h1>
			</header>
			<form action="/user/login" method="post">
				<div class="crm-register-body crm-login1-body">
			        <div class="crm-register-input-warpper">
			          <input type="text" class="crm-register-input" id="formusername" name="username" placeholder="请输入用户名" tabindex="1">
			        </div>
			        <div class="crm-register-input-warpper">
			          <input type="password" class="crm-register-input" id="formpassword" name="password" placeholder="请输入密码" tabindex="2" onfocus="">
			        </div>			        	        
			        <br/>			        
			    </div>
			    <br/>
		        <div id="loginmsg" style="color: red;">
		       	 ${errormsg}
		        </div>
				<div class="crm-register-footer">
			    	<button type="submit" class="pg-btn-submit dinline-block " tabindex="3" act="login_btn">登     录</button>			
			    </div>
			</form>
		</div>
	</div>
	<script type="text/javascript">
	
	if(window != top ){
		top.location.href = location.href;
	}
	
	$(function(){
		$("form").submit(function(e){
			$("#loginmsg").text("");
			if($.trim($("#formusername").val()).length<1){
				$("#loginmsg").text("用户名不能为空");	
				return false;
			}
			if($.trim($("#formpassword").val()).length<1){
				$("#loginmsg").text("密码不能为空");
				return false;
			}
		});
	});
	</script>
</body>
</html>
